package com.ruoyi.project.wechat.domain;

import java.util.ArrayList;
import java.util.List;

public class ExtConfigExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExtConfigExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEidIsNull() {
            addCriterion("eid is null");
            return (Criteria) this;
        }

        public Criteria andEidIsNotNull() {
            addCriterion("eid is not null");
            return (Criteria) this;
        }

        public Criteria andEidEqualTo(Integer value) {
            addCriterion("eid =", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotEqualTo(Integer value) {
            addCriterion("eid <>", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidGreaterThan(Integer value) {
            addCriterion("eid >", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidGreaterThanOrEqualTo(Integer value) {
            addCriterion("eid >=", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidLessThan(Integer value) {
            addCriterion("eid <", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidLessThanOrEqualTo(Integer value) {
            addCriterion("eid <=", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidIn(List<Integer> values) {
            addCriterion("eid in", values, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotIn(List<Integer> values) {
            addCriterion("eid not in", values, "eid");
            return (Criteria) this;
        }

        public Criteria andEidBetween(Integer value1, Integer value2) {
            addCriterion("eid between", value1, value2, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotBetween(Integer value1, Integer value2) {
            addCriterion("eid not between", value1, value2, "eid");
            return (Criteria) this;
        }

        public Criteria andExtAppidIsNull() {
            addCriterion("ext_appid is null");
            return (Criteria) this;
        }

        public Criteria andExtAppidIsNotNull() {
            addCriterion("ext_appid is not null");
            return (Criteria) this;
        }

        public Criteria andExtAppidEqualTo(String value) {
            addCriterion("ext_appid =", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidNotEqualTo(String value) {
            addCriterion("ext_appid <>", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidGreaterThan(String value) {
            addCriterion("ext_appid >", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidGreaterThanOrEqualTo(String value) {
            addCriterion("ext_appid >=", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidLessThan(String value) {
            addCriterion("ext_appid <", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidLessThanOrEqualTo(String value) {
            addCriterion("ext_appid <=", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidLike(String value) {
            addCriterion("ext_appid like", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidNotLike(String value) {
            addCriterion("ext_appid not like", value, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidIn(List<String> values) {
            addCriterion("ext_appid in", values, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidNotIn(List<String> values) {
            addCriterion("ext_appid not in", values, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidBetween(String value1, String value2) {
            addCriterion("ext_appid between", value1, value2, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtAppidNotBetween(String value1, String value2) {
            addCriterion("ext_appid not between", value1, value2, "extAppid");
            return (Criteria) this;
        }

        public Criteria andExtEnableIsNull() {
            addCriterion("ext_enable is null");
            return (Criteria) this;
        }

        public Criteria andExtEnableIsNotNull() {
            addCriterion("ext_enable is not null");
            return (Criteria) this;
        }

        public Criteria andExtEnableEqualTo(Boolean value) {
            addCriterion("ext_enable =", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableNotEqualTo(Boolean value) {
            addCriterion("ext_enable <>", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableGreaterThan(Boolean value) {
            addCriterion("ext_enable >", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("ext_enable >=", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableLessThan(Boolean value) {
            addCriterion("ext_enable <", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableLessThanOrEqualTo(Boolean value) {
            addCriterion("ext_enable <=", value, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableIn(List<Boolean> values) {
            addCriterion("ext_enable in", values, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableNotIn(List<Boolean> values) {
            addCriterion("ext_enable not in", values, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableBetween(Boolean value1, Boolean value2) {
            addCriterion("ext_enable between", value1, value2, "extEnable");
            return (Criteria) this;
        }

        public Criteria andExtEnableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("ext_enable not between", value1, value2, "extEnable");
            return (Criteria) this;
        }

        public Criteria andDirectCommitIsNull() {
            addCriterion("direct_commit is null");
            return (Criteria) this;
        }

        public Criteria andDirectCommitIsNotNull() {
            addCriterion("direct_commit is not null");
            return (Criteria) this;
        }

        public Criteria andDirectCommitEqualTo(Boolean value) {
            addCriterion("direct_commit =", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitNotEqualTo(Boolean value) {
            addCriterion("direct_commit <>", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitGreaterThan(Boolean value) {
            addCriterion("direct_commit >", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitGreaterThanOrEqualTo(Boolean value) {
            addCriterion("direct_commit >=", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitLessThan(Boolean value) {
            addCriterion("direct_commit <", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitLessThanOrEqualTo(Boolean value) {
            addCriterion("direct_commit <=", value, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitIn(List<Boolean> values) {
            addCriterion("direct_commit in", values, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitNotIn(List<Boolean> values) {
            addCriterion("direct_commit not in", values, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitBetween(Boolean value1, Boolean value2) {
            addCriterion("direct_commit between", value1, value2, "directCommit");
            return (Criteria) this;
        }

        public Criteria andDirectCommitNotBetween(Boolean value1, Boolean value2) {
            addCriterion("direct_commit not between", value1, value2, "directCommit");
            return (Criteria) this;
        }

        public Criteria andExtMapIsNull() {
            addCriterion("ext_map is null");
            return (Criteria) this;
        }

        public Criteria andExtMapIsNotNull() {
            addCriterion("ext_map is not null");
            return (Criteria) this;
        }

        public Criteria andExtMapEqualTo(String value) {
            addCriterion("ext_map =", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapNotEqualTo(String value) {
            addCriterion("ext_map <>", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapGreaterThan(String value) {
            addCriterion("ext_map >", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapGreaterThanOrEqualTo(String value) {
            addCriterion("ext_map >=", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapLessThan(String value) {
            addCriterion("ext_map <", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapLessThanOrEqualTo(String value) {
            addCriterion("ext_map <=", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapLike(String value) {
            addCriterion("ext_map like", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapNotLike(String value) {
            addCriterion("ext_map not like", value, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapIn(List<String> values) {
            addCriterion("ext_map in", values, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapNotIn(List<String> values) {
            addCriterion("ext_map not in", values, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapBetween(String value1, String value2) {
            addCriterion("ext_map between", value1, value2, "extMap");
            return (Criteria) this;
        }

        public Criteria andExtMapNotBetween(String value1, String value2) {
            addCriterion("ext_map not between", value1, value2, "extMap");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextIsNull() {
            addCriterion("navigation_bar_title_text is null");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextIsNotNull() {
            addCriterion("navigation_bar_title_text is not null");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextEqualTo(String value) {
            addCriterion("navigation_bar_title_text =", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextNotEqualTo(String value) {
            addCriterion("navigation_bar_title_text <>", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextGreaterThan(String value) {
            addCriterion("navigation_bar_title_text >", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextGreaterThanOrEqualTo(String value) {
            addCriterion("navigation_bar_title_text >=", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextLessThan(String value) {
            addCriterion("navigation_bar_title_text <", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextLessThanOrEqualTo(String value) {
            addCriterion("navigation_bar_title_text <=", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextLike(String value) {
            addCriterion("navigation_bar_title_text like", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextNotLike(String value) {
            addCriterion("navigation_bar_title_text not like", value, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextIn(List<String> values) {
            addCriterion("navigation_bar_title_text in", values, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextNotIn(List<String> values) {
            addCriterion("navigation_bar_title_text not in", values, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextBetween(String value1, String value2) {
            addCriterion("navigation_bar_title_text between", value1, value2, "navigationBarTitleText");
            return (Criteria) this;
        }

        public Criteria andNavigationBarTitleTextNotBetween(String value1, String value2) {
            addCriterion("navigation_bar_title_text not between", value1, value2, "navigationBarTitleText");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}